package com.yksj.healthtalk.ui.friend;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import com.yksj.healthtalk.comm.BaseFragmentActivity;
import com.yksj.healthtalk.ui.R;
import com.yksj.healthtalk.ui.friend.FriendExactSearchFragment.onBackListener;

/**
 * 社交场搜索
 * @author jack_tang
 *
 */
public class FriendSearchUI extends BaseFragmentActivity implements onBackListener{
	
	private String mDuoMeiNum;

	@Override
	protected void onCreate(Bundle arg0) {
		// TODO Auto-generated method stub
		super.onCreate(arg0);
		setContentView(R.layout.salon_main);
		
		if (getIntent().hasExtra("duoMeiNum")) {
			mDuoMeiNum = getIntent().getExtras().getString("duoMeiNum");
		}
		FriendExactSearchFragment activity = FriendExactSearchFragment.getInstance(mDuoMeiNum.toString());
		FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
		transaction.replace(R.id.fragment, activity);
		transaction.commit();
	}

	@Override
	public void onBack() {
		finish();
	}

}
